#
s1 = 'hello world'
print(s1.startswith('hello'))
print(s1.startswith('he'))
print(s1.startswith('world'))
#
print(s1.endswith('world'))
print(s1.endswith('ld'))
print(s1.endswith('hello'))
#
print('hello' in s1)

#
s2 = 'python'
#
print(s2.isupper())
print(s2.islower())
s3 = 'Python'
print(s3.upper())
print(s3.lower())

#
s4 = '  python  '
print('s4:', s4, '--end')
print('s4:', s4.lstrip(), '--end')
print('s4:', s4.rstrip(), '--end')
print('s4:', s4.strip(), '--end')

#
name = 'aaa.bbb.ccc.ddd.eee'
nlist = name.split('.')
print(nlist)
print(nlist[0], nlist[1], nlist[3])
print('-'.join(nlist))

#
text = '  Python is a High-level, interped, general-purpose programming langeage.  '
text1 = text.strip()
text2 = text1.lower()
print('high-level' in text2)

print('high-level' in text.strip().lower())
